from .models import *
from rest_framework.serializers import ModelSerializer


class CarSer(ModelSerializer):
    class Meta:
        model = CarTable
        fields = '__all__'


class UserSer(ModelSerializer):
    class Meta:
        model = Suser
        fields = '__all__'


class ComSer(ModelSerializer):
    class Meta:
        model = Comtent
        fields = '__all__'


class ShopSer(ModelSerializer):
    con = ComSer(read_only=True, many=True)

    class Meta:
        model = Shop
        fields = '__all__'
